package com.example.mapper;

import com.example.entity.Family;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FamilyMapper {

    int insert(Family family);

    /**
     * 删除
     */
    int deleteById(Integer id);

    /**
     * 修改
     */
    int updateById(Family family);

    /**
     * 根据ID查询
     */
    Family selectById(Integer id);

    /**
     * 查询所有
     */
    List<Family> selectAll(Family family);
}
